﻿using System;
using System.Data;
using System.Text;
using System.Configuration;
using System.Collections.Generic;

using System.Security;
using System.Security.Permissions;
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AllowPartiallyTrustedCallers]
namespace Models
{
    public class User
    {
       
        /* 
        public static  int PENDING = 0;
        public static  int ACTIVE = 1;
        public static  int CANCEL = 2;
        public static  int BANNED = 3;
       */
        #region variables
        private string userName;
        private string name;
        private string password; 
        private string address;
        private string email;
        private int userID;
        private int clientID;
        private string role;
        private string is_admin;
      //  private DateTime createdDate;
       // private DateTime modifiedDate;


        #endregion

        #region constructor

      
		
        public User()
        {
            this.userName = "";
            this.name = "";
            this.password = "";
            this.address = "";
            this.email = "";
            this.userID = 0;
            this.clientID = 0;
            this.role = "";
            this.is_admin = "";
            
        }

        public User(int userID, string userName, string name, string password,string address, string email,
            string role, int clientID,string is_admin)
        {
            this.userName = userName;
            this.name=name;
            this.password = password;
            this.address = address;
            this.email = email;
            this.userID = userID;
            this.clientID = clientID;
            this.is_admin = is_admin;
        }

        #endregion
        public int UserID
        {
            get { return userID; }
            set { userID = value; }
        }

        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }
        public string Is_admin
        {
            get { return is_admin; }
            set { is_admin = value; }
        }
        public string Password
        {
            get { return password; }
            set { password = value; }
        }
        public string Email
        {
            get { return email; }
            set { email = value; }
        }


        public string Name
        {
            get { return name; }
            set { name = value; }
        }       

        public string Address
        {
            get { return address; }
            set { address = value; }
        }

        public int ClientID
        {
            get { return clientID; }
            set { clientID = value; }
        }

        public string Role
        {
            get { return role; }
            set { role = value; }
        }

    }
}
